﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Malkafly.EFDorsal.BusinessLayer
{
    /// <summary>
    /// Generic Entity to suport data itens from.edmx
    /// </summary>
    [Serializable]
    public class EntidadeGenerica
    {
        public string EntityType { get; set; }
        public string EntityPropertyKey { get; set; }
        public string EntityPropertyKeyType { get; set; }
        public string EntitySet { get; set; }
        public List<EntityFields> EntityProperty { get; set; }
    }

    [Serializable]
    public class EntityFields
    {
        public string PropertyName { get; set; }
        public string PropertyType { get; set; }
        public bool isKey { get; set; }
        public bool isNullable { get; set; }
        public string StoreGeneratedPattern { get; set; }
        public int MaxLength { get; set; }
    }

    [Serializable]
    public class EntityConfiguracoes
    {
        public string EntityContainer { get; set; }
        public string NamespaceProjeto { get; set; }
        public string NamespaceData { get; set; }
        public string OutputFolder { get; set; }

        public bool hasSelect { get; set; }
        public bool hasInsert { get; set; }
        public bool hasUpdate { get; set; }
        public bool hasDelete { get; set; }
    }
}
